#e.g. linkEff POS good_v8_MC_14052013_PRIM

a=$1; 
sdir=/hera/alice/xlu/workspace/hera2dbetabloch/$2

ls
echo

echo $a $sdir

for ii in $(find $sdir/MC_$a/LHC{11a,10d,10e}*/Out*.root)
do 
    jj=$(echo $ii| awk -F\/  '{print $9}'| awk -F\_ '{print substr($1,4,3)"_"$3}'); 
    echo $ii $jj; 
    ln -s $ii $jj\_eff.root; 
done

for ii in $(find $sdir/MC_$a/LHC10h*/Out*.root)
do 
    jj=$(echo $ii| awk -F\/  '{print $9}'| awk -F\_ '{print substr($1,4,3)substr($1,9,4)"_"$3}'); 
    echo $ii $jj;
    ln -s $ii $jj\_eff.root; 
done
